package com.front.managementfront.cargoinformation.entity;

import java.beans.Transient;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-06-30
 */
@ApiModel(description = "货物信息")
public class HktsCargoInformation extends Model<HktsCargoInformation> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键id")
    private String id;
    private String createBy;
    private LocalDateTime createTime;
    private Integer delFlag;
    private String updateBy;
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "货物名称")
    private String cargoName;
    @ApiModelProperty(value = "货物类别")
    private String cargoType;
    @ApiModelProperty(value = "货物类别名称")
    @TableField(exist=false)
    private String cargoTypeName;
    @ApiModelProperty(value = "是否启用，禁用")
    private String isEnable;
    @ApiModelProperty(value = "是否为热门 0 否，1是")
    private String isHotCategories;

    public String getIsHotCategories() {
        return isHotCategories;
    }

    public void setIsHotCategories(String isHotCategories) {
        this.isHotCategories = isHotCategories;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getCargoTypeName() {
        return cargoTypeName;
    }

    public void setCargoTypeName(String cargoTypeName) {
        this.cargoTypeName = cargoTypeName;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName;
    }

    public String getCargoType() {
        return cargoType;
    }

    public void setCargoType(String cargoType) {
        this.cargoType = cargoType;
    }

    public static final String ID = "id";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String CARGO_NAME = "cargo_name";

    public static final String CARGO_TYPE = "cargo_type";
    public static final String IS_ENABLE = "is_enable";
    public static final String IS_HOT_CATEGORIES = "is_hot_categories";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsCargoInformation{" +
                ", id=" + id +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", cargoName=" + cargoName +
                ", cargoType=" + cargoType +
                ", isEnable=" + isEnable +
                ", isHotCategories=" + isHotCategories +
                "}";
    }
}
